package com.eslserver.dao;

import java.sql.SQLException;

public class ESLServerDAOFactory extends DAOFactory {

	@Override
	public ESLDAO getESLDAO() throws DAOException {
		try {
			return new DBESLDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBESLDAO", e);
		}
	}

	@Override
	public GroupDAO getGroupDAO() throws DAOException {
		try {
			return new DBGroupDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBGroupDAO", e);
		}
	}

	@Override
	public ScheduleDAO getScheduleDAO() throws DAOException {
		try {
			return new DBScheduleDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBScheduleDAO", e);
		}
	}

	@Override
	public ImageDAO getImageDAO() throws DAOException {
		try {
			return new DBImageDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBImageDAO", e);
		}
	}

	@Override
	public CoordinatorDAO getCoordinatorDAO() throws DAOException {
		try {
			return new DBCoordinatorDAO();
		} catch (SQLException e) {
			throw new DAOException("Error accessing DBCoordinatorDAO", e);
		}
	}

}
